package com.hou.educenter.utils;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.stereotype.Component;

/**
 * @author shkstart
 * @create 2021-11-23-15:58
 */
@Component

public class ConstentWxUtils implements InitializingBean {


    @Value("${wx.open.appid}")
    private String addId;

    @Value("${wx.open.appsecret}")
    private String appSecret;

    @Value("${wx.open.redirecturl}")
    private String redirectUrl;

    public static String APP_ID;
    public static String APP_SECRET;
    public static String REDIRECT_URL;

    @Override
    public void afterPropertiesSet() throws Exception {
        APP_ID = addId;
        APP_SECRET = appSecret;
        REDIRECT_URL = redirectUrl;
    }
}
